<?php

/*$db = new mysqli("localhost", "root", "123456abc", "cms");

if (!$db->connect_error){
    echo "Sueccse";
} else {
    echo $db->connect_error;
} */

try {
    $pdo = new PDO("mysql:host=localhost;dbname=cms", "root", "123456abc");
} catch (PDOException $e) {
    exit("Database error");
}

?>
